<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>9.16作业</title>
</head>
<body>
    <div style="color: red;">作业</div>
    <script>
        let b = 1+5
        console.log(b)
        alert("宇宙无敌暴龙战士")//弹出警告框
        console.log("宇宙无敌暴龙战士1号")//输出到控制台
        let a= "宇宙无敌暴龙战士2号"
        console.log(a)
        document.write("宇宙无敌暴龙战士3号")
        function happy(){
            console.log("宇宙无敌暴龙战士4号")
        }
        happy()
    </script>
</body>
</html>